package day01;

public class java01 {
   public static void main(String[] args) {
     int a=564;
     int b,c,d;
     b=a/100%10;
     c=a/10%10;
     d=a%10;
     System.out.println(b);
     System.out.println(c);
     System.out.println(d);
     System.out.println(b+c+d);
}
}
